<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>06设置kindeditor为不可编辑状态</title>
		<!-- 添加kindeditor的引用 -->
		<script type="text/javascript" charset="utf-8" src="js/kindeditor/kindeditor.js"></script>
		<script type="text/javascript" charset="utf-8" src="js/kindeditor/lang/zh_CN.js"></script>
	</head>
	
	<script>
		var editor;
		KindEditor.ready(function(K){
			editor = K.create('textarea[id="content"]',{
				allowFileManager : true
			});
			//设置kindeditor为不可编辑状态
			editor.readonly(true);
		});
	</script>
	
	<body>
		<textarea id="content" style="width:60%;height: 500px;"></textarea>
	</body>
</html>
